package com.bao.ServiceImpl;

import com.bao.Dao.AgencyDao;
import com.bao.DaoImpl.AgencyDaoImpl;
import com.bao.Emtity.agency;
import com.bao.Service.AgencyService;

import java.util.List;

/**
 * Created by TangBaoshan on 2018/8/11.
 */
public class AgencyServiceImpl implements AgencyService {
    @Override
    public agency FindNumAgency(int id) {
        AgencyDao dao= new AgencyDaoImpl();
        return dao.FindNumAgency(id);
    }

    @Override
    public List<agency> findregionName(String Name) {
        AgencyDao dao= new AgencyDaoImpl();
        return dao.findregionName(Name);
    }

    @Override
    public int Addagency(agency agency) {
        AgencyDao dao= new AgencyDaoImpl();
        return dao.Addagency(agency);
    }

    @Override
    public int findregionNum(int drank, int city) {
        AgencyDao dao= new AgencyDaoImpl();
        return dao.findregionNum(drank,city);
    }

}
